function Person(name,age) {
    this.name = name;
    this.age = age;
}
Person.prototype = {
    say: function() {
        console.log('hello');
    },
    babk: function() {
        console.log('aaa');
    }
}
function mynew(fn,...args){
    // console.log(arguments);
    let obj = Object.create(fn.prototype)
    fn.call(obj, ...args)
}
// new Person('陈委员',18);
let p1 = mynew(Person,'陈委员',18);
console.log(Object.keys(p1),p1.__proto__);